<style src="./index.scss" lang="scss" scoped rel="stylesheet/scss"></style>
<template src="./index.html"></template>
<script>
import apiConfig from "./../apiConfig";
export default {
    components: {},
    props: {
        // 使用者window实例 必定义
        appWindow: {
            type: Object,
            default: null,
        },
        // 接口列表
        apiConfig: {
            type: Object,
            default: apiConfig,
        },
        value: {
            type: String,
            default: null,
        },
        clean: {
            type: Boolean,
            default: false,
        },
        disabled: {
            type: Boolean,
            default: false,
        },
    },

    computed: {},
    data() {
        return {};
    },
    methods: {
        SelectAddressMap() {
            this.$vFN.Directives.SelectAddressMap({
                appWindow: this.appWindow,
                apiConfig: this.apiConfig,
                addressInfo: this.value,
                onSuccess: (res) => {
                    console.error(res);
                    this.$emit("input", res.data);
                },
            });
        },
    },
    watch: {},
    mounted() {},
    beforeCreate() {},
};
</script>